import { forwardRef, Module, SetMetadata } from "@nestjs/common";
import { MODULE_PATH } from "@nestjs/common/constants";
import { AdministratorsService } from "./administrators.service";
import { AdministratorsController } from "./administrators.controller";
import { TypeOrmModule } from "@nestjs/typeorm";
import { Admin } from "/@/entities/user/Admin.entity";
import { Auth } from "/@/entities/user/Auth.entity";
import { AuthModule } from "/@/adminModeul/auth/auth.module";
import { RedisCacheService } from "/@/common/redis/redisCache.service";

@Module({
  imports: [
    TypeOrmModule.forFeature([Admin, Auth]),
    forwardRef(() => AuthModule),
  ],
  controllers: [AdministratorsController],
  providers: [AdministratorsService, RedisCacheService],
  exports: [AdministratorsService],
})
@SetMetadata(MODULE_PATH, "/admin")
export class AdministratorsModule {
  //
}
